home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / SPECIAL.SCR < prev    next >
Text File  |  1991-12-20  |  3KB  |  73 lines

  1. .pg clr ye
  2.  
  3.                           SPECIAL VARIABLES
  4. »#«
  5. /box 4 1 76 3 11 7 ""
  6. .wi 1 5 80 25
  7.     »%t«DO»#« has several special variables which can be used in any
  8.     place where variables are expanded.  These variables are
  9.     enclosed in braces ("»ye«{}»#«") and must be entered »re«EXACTLY»#« as
  10.     shown.
  11.  
  12. .pg
  13.     »gr«~123date~125»#«      Displays the »cy«current date»#« padded on the left to
  14.                 eight charaters with spaces ("»gr«MM/DD/YY»#«")
  15.  
  16.     »gr«~123time~125»#«      Displays the »cy«current time»#« padded on the left to
  17.                 eight characters with spaces ("»gr«HH:MM:DD»#«");
  18.  
  19.     »gr«~123home~125»#«      Displays the home directory.  That is, the
  20.                 directory in which the DO script was started.
  21.  
  22.     »gr«~123X~125»#«         Displays the column position of the cursor in two
  23.                 positions, zero filled (e.g. 01, 08, 10).
  24.  
  25.     »gr«~123Y~125»#«         Displays the row position of the cursor in two
  26.                 positions, zero filled (e.g. 01, 08, 24).
  27.  
  28.     »gr«~123script~125»#«    The full path name of the script.
  29.  
  30. .pg clr
  31.     Here are some examples of the use of special variables.  The
  32.     lines are presented showing the variables.  To see the
  33.     results, press <enter> to execute the line.
  34.  
  35. |   Today's Date and Time: {date} {time}
  36.  
  37. |   {script} was started in {home}
  38.  
  39. |   The cursor is at column {X}, row {Y}
  40.  
  41.  
  42. .pg wi full clr ye
  43.  
  44.                             RESERVED VARIABLES
  45. »#«
  46. /box 4 1 76 3 14 14 ""
  47.     There are also »ye«reserved variables»#« used with various commands.  Although
  48.     you are not restricted from using these variable names, you should be
  49.     careful should you decide to use them in scripts where the related
  50.     command will be executed:
  51. »wh«
  52.     EDIT     »#«Defines the external editor to be used by the »%t«/EDIT»#«
  53.              command instead of the built-in editor.
  54. »wh«
  55.     LIST     »#«Defines the external list program to call in place of
  56.              Vernon Buerg's »ce«LIST.COM»#« program when the »%t«/LIST»#« command
  57.              is executed.
  58.  
  59. .pg clr ye
  60.  
  61.                           SPECIAL CHARACTERS
  62. »#«
  63. /box 4 1 76 3 14 14 ""
  64.     You can enter special characters by entering their three character
  65.     ASCII code preceeded by a »wh«tilde»#« ("»ye«~»#«") character:
  66.  
  67.                     »+re«~»#«{ascii code}
  68.  
  69.     Let's ring the bell (»cy«press »bo«<enter>»cy« to execute the statement»#«):
  70.  
  71. |Bell here >~007< using ASCII 07.
  72. /ENDEXEC
  73.